/**
 * Created by cherrybomb on 2017/11/20.
 */
import React, { Component } from 'react';
import { View,Text,ScrollView } from 'react-native';
import { ThemeProvider,Button } from 'iftide';
import Basic from './demo/Basic';
import Basic1 from './demo/Basic1';
import Basic2 from './demo/Basic2';
import Basic3 from './demo/Basic3';
import Basic4 from './demo/Basic4';
import Basic5 from './demo/Basic5';


export default class NavBar_Demo extends Component{
    constructor(props) {
        super(props);
        this.state = {
            theme:"themeB",
        }
    }

    onPress1=()=>{
        this.setState({
            theme:"themeA",
        })
    }

    render() {

        return (
         
              
                <View style={{flex:1}}>
                    <ScrollView>
                    <Button title={"切换"} size={"normal"} onPress={this.onPress1}  buttonHeight={60}/>
                    <ThemeProvider  theme={this.state.theme}/>
                    <Text>示例一</Text>
                    <Basic/>


                    <Text>示例二</Text>
                    <Basic1/>

                    <Text>示例三</Text>
                    <Basic2/>


                    <Text>示例四</Text>
                    {/* <Basic3/> */}

                    <Text>示例五</Text>
                    {/* <Basic4/> */}

                    {/* <Text>示例六</Text>
                    <Basic5/> */}
                    </ScrollView>
                </View>
            
        );
    }
}
